package cn.akwangl.design.pattern.creational.abstractfactory;

import org.apache.ibatis.session.SqlSessionFactory;

import java.sql.Connection;

/**
 * 抽象工厂demo#使用.
 * <p>
 * demo 实例<br/>
 * {@link SqlSessionFactory}<br/>
 * {@link Connection}<br/>
 * </p>
 *
 * @author youyongkun
 * @date 2021/11/24 10:14
 * @since 1.0
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        AbstractCourseFactory courseFactory = new JavaCourseFactory();
        IArticle article = courseFactory.getArticle();
        IVideo video = courseFactory.getVideo();

        article.produce();
        video.produce();
    }
}
